#pragma once
#include "mygamewindow.h"
#include "Sprite.h"
#include "string"
using namespace std;

enum CheckBoxState
{
	CBS_Unchecked = 0,
	CBS_Checked,
	CBS_MouseDown,	
	CBS_Disable
};

class CMyGameCheckBox :public CMyGameWindow
{
protected:
	CheckBoxState m_cbsState;
	CSprite m_sprCheckBoxBmp;

public:
	CMyGameCheckBox(void);
	~CMyGameCheckBox(void);

	void Update();
	void Draw(HDC hDC);

	void LoadRes(LPCSTR szFileName);
	void SetEnable(BOOL bEnable);

	BOOL IsChecked();

	BOOL LBtnDown(int x,int y);
	BOOL LBtnUp(int x,int y);
	BOOL MouseMove(int x,int y);
};
